How to navigate around a '[' in JSON.

Posted by Kyle on Stack Overflow See other posts from Stack Overflow or by Kyle
Published on 2010-05-04T23:05:07Z Indexed on 2010/05/04 23:08 UTC
Read the original article Hit count: 137

Filed under:
|
|

I'm new to JSON and moving around in it in jQuery. I'm fine until I hit a '[', as in:

  "gd$when": [{
    "startTime": "2006-11-15",
    "endTime": "2006-11-17",
    "gd$reminder": [{"minutes": "10"}]
  }],

I tried to do a

eventTime = event["gd$when"]["startTime"];

to get to the 'startTime' (Yes, event is the variable for ajax stuff, it's all working fine until I hit the '[')

Thanks for any help.

© Stack Overflow or respective owner

Related posts about AJAX

Related posts about jQuery